import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

import java.io.IOException;


public class HTMLParserExample1 {
    public static void main(String[] args) {

        Document doc, carlo;
        try {


            carlo = Jsoup.connect("http://www.carlopazolini.com/ru/collection/men/shoes/loafers-and-moccasins/sd-rod2-1r1").get();




            // need http protocol
            doc = Jsoup.connect("http://www.carlopazolini.com/ru/collection/men/shoes/loafers-and-moccasins/sd-rod2-1r1").get();

            // get page title
            String title = doc.title();
            System.out.println("title : " + title);

            System.out.println("Category: " + doc.select("h1").first().text());
            System.out.println("SCU: " + doc.select("h3").first().text());
            System.out.println("Price: " + doc.select("p.price.size25").first().text());

            Elements links = doc.select("p.price.size25");

            Elements price = doc.getElementsByClass("p");


            for (Element link : links) {

                //System.out.println("Price : " + link.text());

            }

        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
